package br.com.absolutech.study.chapter9.pag406;

public class Thing {

	private static int staticField;
	private int nonStaticField;
	
	public static synchronized int getStaticField() {
		return staticField;
	}
	
	public static synchronized void setStaticField(int staticField) {
		Thing.staticField = staticField;
	}
	
	public synchronized int getNonStaticField() {
		return nonStaticField;
	}
	
	public synchronized void setNonStaticField(int nonStaticField) {
		this.nonStaticField = nonStaticField;
	}
}
